package daily.may0527;

import java.util.ArrayList;
import java.util.Collections;
import java.util.stream.Stream;
public class StreamCountTest {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        Collections.addAll(list,1,3,5,7,2,4,6);
        Stream<Integer> stream = list.stream();
        System.out.println(stream.count());//7
        System.out.println(list.size());//7
    }
}